home *** CD-ROM | disk | FTP | other *** search
- Path: acsu.buffalo.edu!naras-r
- From: naras-r@acsu.buffalo.edu (Ram Prasad)
- Newsgroups: comp.lang.c
- Subject: CPU time measurement
- Date: 8 Jan 1996 22:31:47 GMT
- Organization: UB
- Message-ID: <4cs60j$ilb@azure.acsu.buffalo.edu>
- NNTP-Posting-Host: autarch.acsu.buffalo.edu
- NNTP-Posting-User: naras-r
-
- Hi,
-
- Is there a standard acceptable way of measuring the
- number of (milli)seconds that different pieces of code take
- to execute in a system?
-
- I want to know the times taken by different subroutines
- in my code. (I am looking for something that will give
- the time to execute without interference from other
- processes and programs that may be running in the system)
-
- I found "getrusage" in the man pages, but I am not sure if
- that's what I should use.
-
- thanks,
-
-
- --
- Ram
- --
- Ram Prasad naras-r@acsu.buffalo.edu
-